﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DLUProject.Services;
using DLUProject.Domain;
public partial class Account_AccountInfo : BaseUserControl
{
    public  Account MyAccount { get; set; }
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected override void OnInit(EventArgs e)
    {
        base.OnInit(e);
        MyAccount = Session.GetAccountLogged();
    }
    
    protected void btnLogOff_ServerClick(object sender, EventArgs e)
    {
        Session.RemoveAccountLogged();
        Response.Redirect("/");
    }
}